<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AppFileService
 *
 * @author Administrator
 */
class AppFileService {

    /**
     * 添加数据
     * @param type $appId
     * @param type $fileIdList 
     */
    function insert($appId, $fileIdList) {
        $appFileTable = D('app_file');

        $dataList = array();
        foreach ($fileIdList as $id) {
            array_push($dataList, array('app_id' => $appId, 'file_id' => $id));
        }
        $appFileTable->addAll($dataList);
    }

}

?>
